package hong.jun.feign.client;


import hong.jun.feign.fallback.Resources2FeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "resources-server2",fallbackFactory = Resources2FeignClientFallback.class )
public interface Resources2FeignClient {

    @RequestMapping(value = "/dep/list",method = RequestMethod.GET)
    String list();

    @RequestMapping(value = "/dep/save",method = RequestMethod.POST)
    String save();
}
